package com.cyq.day18.book;

public class Test {
    public static void main(String[] args) {
         Book book=new Book(4,"大主宰","土豆",40,50);
         BookManager bm=new BookManager();
       bm.add(book);
       bm.list();
        Book[] bb=bm.BookFilter(new BookFilter(){
            @Override
            public boolean filter(Book book) {
                return book.getHotNum()>60;
            }
        });
        System.out.println("过滤之后---------");
        for (int i = 0; i <bb.length ; i++) {
            if (bb[i]!=null){
                System.out.println(bb[i].toString());
            }
        }
    }
}
